import request from '@/utils/request'

// 查询学生列表
export function listStudent (data) {
  return request({
    url: '/more/student/getStudentList',
    method: 'post',
    data: data
  })
}
// 查询学生列表
export function getStudentPull (data) {
  return request({
    url: '/more/student/getStudentPull',
    method: 'post',
    data: data
  })
}
// 新增学生
export function addStudent (data) {
  return request({
    url: '/more/student/addStudent',
    method: 'post',
    data: data
  })
}
// 修改学生
export function updateStudent (data) {
  return request({
    url: '/more/student/studentUpdate',
    method: 'post',
    data: data
  })
}

// 查询单个学生
export function studentDetail (query) {
  return request({
    url: '/more/student/studentDetail',
    method: 'get',
    params: query
  })
}
// 查询家长
export function queryParent (query) {
  return request({
    url: '/more/student/showParentInfo',
    method: 'get',
    params: query
  })
}
// 删除学生
export function deletestudent (id) {
  return request({
    url: '/more/student/outSchool/' + id,
    method: 'delete',
  })
}

